#!/usr/bin/env python
# encoding: utf-8
"""
@author: youfeng
@email: youfeng243@163.com
@license: Apache Licence
@file: post_demo.py
@time: 2017/12/29 10:53
"""
import requests


def main():
    url = 'http://cs5:3005/gsxt'
    post_data = {
        'code': 'hello world'
    }

    resp = requests.post(url=url, data=post_data)
    print resp.status_code
    print resp.text


if __name__ == '__main__':
    main()
